package logger

func String(name string, val any) Field {
	return Field{
		Name:  name,
		Value: val,
	}
}

func Error(err error) Field {
	if err == nil {
		return Field{}
	}
	return Field{Name: "error", Value: err}
}

func Int64(name string, val any) Field {
	return Field{
		Name:  name,
		Value: val,
	}
}
